package com.example.knowman.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("\"ARCHKNOW\".\"message\"")
public class messageEntity extends Model<messageEntity>{

    private static final long serialVersionUID = 1L;

    @TableField("\"messId\"")
    private Integer messId;

    @TableField("\"operator\"")
    private String operator;

    @TableField("\"messContent\"")
    private String messContent;

    @TableField("\"messState\"")
    private Integer messState;

    @TableField("\"createtime\"")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createtime;

    @TableField("\"type\"")
    private Integer type;

}
